<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:decorate template="/template/padrao.xhtml">
        <ui:define name="center">
            <h:form id="form">
                <p:growl id="msg" life="5000"/>
                <p:fieldset  legend="Design" style="font-size: 12px;">
                    <br/>
                    <h:panelGrid columns="1" style="float: left; font-size: 12px;">

                        <ui:repeat value="#{managerCreateQuestionnaire.questionnaire.categorys}" var="categorys">
                            <h:panelGrid columns="2" style="font-size: 12px;" >
                                <p:column>
                                    <p:fieldset legend="#{categorys.name}">
                                        <ui:repeat value="#{categorys.issueses}" var="issues"> 
                                            <h:outputText value="#{issues.title}"/><br/>
                                            <ui:repeat value="#{issues.options}" var="options">
                                                <h:outputText value="#{options.title}"/><br/>
                                            </ui:repeat>
                                        </ui:repeat>

                                    </p:fieldset> 
                                </p:column>

                                <p:column>
                                    <p:commandButton title="Nova Pergunta" icon="ui-icon-help" actionListener="#{managerCreateQuestionnaire.newTheme(categorys)}"/>
                                </p:column>
                            </h:panelGrid>    
                        </ui:repeat>

                    </h:panelGrid>    

                </p:fieldset>
            </h:form>
        </ui:define>
    </ui:decorate>
</html>

<!--<ui:repeat value="{issues.options}" var="opt">
                                <h:outputText value="{opt.title}"/><br/>
                                
                            </ui:repeat>-->